<template>
	<view class="content clearfix">
		<alerts :mesNum="mesNum" v-if="showMes" @close="close"></alerts>
		<!-- <view class="top-line"></view> -->
		<uni-nav-bar fixed="true" statusBar="true" class="top" border="" background-color="#585cf7">
			<view slot="left" class="left">
				<image mode="aspectFit" class="logo" src="../../static/image/page/logo.png"></image>
			</view>
			<view class="input-view" @click="goToSearch()">
				<uni-icons class="input-uni-icon" type="search" size="22" color="#666666" />
				<text class="nav-bar-input">姓名,订单号</text>
			</view>
			<view slot="right" class="right_wrap">
				<uni-icons type="scan" size="18" color="#fff" @click="scanCode"></uni-icons>
				<navigator url="/pages/message/index" class="icon_tip">
					<uni-icons type="chat" size="18" color="#fff"></uni-icons>
					<text class="tips" :class="{'tips-max':noReading>99}"  v-if="noReading>0">{{noReading>99?'···':noReading}}</text>
				</navigator>
			</view>
		</uni-nav-bar>
		<!--end head-->
		<view class="nav uni-flex">
			<navigator class="item" open-type="navigate" url="../proImage/proImage">
				<image class="nav_icon" src="../../static/image/page/nav_01.png" mode="aspectFit"></image>
				<text class="title">推广海报</text>
			</navigator>
			<navigator class="item" open-type="switchTab" url="../order/order">
				<image class="nav_icon" src="../../static/image/page/nav_02.png" mode="aspectFit"></image>
				<text class="title">我的订单</text>
				<!-- <view  :class="['angle','order-angle','angle-center']">...</view> -->
				 <view v-if="mesNum>0" :class="['angle','order-angle',mesNum>99 ? 'angle-center':'']">{{mesNum>99?'...':mesNum}}</view>
			</navigator>
			<navigator class="item" open-type="switchTab" url="../team/team">
				<image class="nav_icon" src="../../static/image/page/nav_03.png" mode="aspectFit"></image>
				<text class="title">我的团队</text>
			</navigator>
			<navigator class="item" open-type="switchTab" url="../tool/tool">
				<image class="nav_icon" src="../../static/image/page/nav_04.png" mode="aspectFit"></image>
				<text class="title">常用工具</text>
			</navigator>
		</view>
		<!--end nav-->

		<view class="banner">
			<swiper class="swiper" :autoplay="true" :interval="3000" :duration="1000" :current="swiperCurrent"
				circular="true" @change="changeSwiper">
				<swiper-item v-for="item,index in swiperImg" :key="index">
					<image @click="goBannerDetail" :data-item="item.description" class="swiper-item"
						:src="item.itemText" mode="widthFix"></image>
				</swiper-item>
			</swiper>
			<!-- 轮播指示点样式修改 -->
			<view class="dots">
				<block v-for="(item,index) in swiperImg.length" :key="item">
					<view class="dot" :class="index==swiperCurrent ? ' active' : ''"></view>
				</block>
			</view>
		</view>
		<!--end banner-->
		<view class="uesr_wrap uni-w690" v-if="hasLogin">
			<view class="user uni-flex">
				<view class="left">
					<image class="ts" mode="aspectFit" :src="userInfo.icon"></image>
					<view class="level"><text>S{{userInfo.grade}}</text></view>
				</view>
				<view class="center">
					<view class="name">我的业绩收入</view>
					<view class="text">
						<text>￥</text>
						<text class="pm">{{income.prototionMoney}}</text>
					</view>
				</view>
				<view class="right">
					<text>排名第<text class="red">{{income.rank}}</text>名</text>
					<text class="uni-icon">&#xe583;</text>
				</view>
			</view>
			<view class="bottom">
				<image class="img" src="../../static/image/page/yjgs.png"></image>
				<an-notice-bar class="swiper-s" :text="noticeMsg"></an-notice-bar>
			</view>
		</view>
		<!--end  user-->
		<view class="classification" v-if="true">
			<view class="class-menu">
				<navigator url="/pages/article/article" class="class-item">
					  <view class="flex flex-dir">
					        <text class="class-item-title">经纪人学堂</text>
					        <text class="class-item-title-text">精选课程助您成长</text>
					      </view>
					      <image src="../../static/image/page/xueyuan@2x.png" class="class-item-img"></image>
				</navigator>
				<navigator url="/pages/shareCom/shareCom" class="class-item">
					  <view class="flex flex-dir">
					        <text class="class-item-title">赚钱分享社区</text>
					        <text class="class-item-title-text">赚钱经验与您分享</text>
					      </view>
					      <image src="../../static/image/page/shequ@2x.png" class="class-item-img"></image>
				</navigator>
			</view>
			<navigator url="/pages/integral-mall/index" class="jfsc">
				<!-- <view class="jfcs-title">积分商城</view>
				<view class="jfsc-tips">精品好礼您来领</view>
				<view class="jifen-icon-box">
					<image src="../../static/image/page/jifen-icon.png" class="jifen-icon"></image>
				</view>
				<view class="qdh">去兑换></view> -->
				<image src="../../static/image/page/jifen@2x.png" class="jifen-img"></image>
			</navigator>
		</view>

		<!--end news-->

		<view class="promotion uni-w690">
			<view class="title">
				<text>推广中心</text>
			</view>
			<view class="extend" v-for="(item,index) in exten" :key="index">
				<view class="ex_title"> {{item.mainName}}</view>
				<view class="ex_item" v-for="subItem in item.vices" :key="subItem.id"
					@click="goToProduct(subItem.id,subItem.name)">
					<view class="center">
						<view class="name">{{subItem.name}} <text class="secondText">{{subItem.secondText}}</text>
						</view>
						<view class="thirdTest">{{subItem.thirdTest}}</view>
					</view>
					<view class="right">
						<button class="btn-tg" :class="{'xyk-btn':subItem.id==4}">推广</button>
					</view>
				</view>
			</view>
		</view>
		<!--end 推广中心-->
		<!-- 图标 -->
		<navigator v-if="isOpenActivity" url="/pages/receivea-red-envelope/receivea-red-envelope">
			<image src="../../static/image/page/hongbao-icon.png" class="hongbao-icon"></image>
		</navigator>
		<!-- 红包弹层 -->
		<!-- 弹层 -->
		<view class="layer" v-if="isShowRedEnvelope && isOpenActivity">
			<!-- 分享海报 -->
			<view class="hb-bg" v-if="noRedEnvelopesOrNotLoggedIn">
				<image src="../../static/image/page/hb-bofer.png" class="hb-bofer"></image>
				<image @click="closeLayer" src="../../static/image/page/hb-close.png" class="hb-close"></image>
				<view class="hb-bofer-content">
					<view class="gx-text">分享可获得邀请专享红包</view>
					<view class="btn" @click="viewImg">立即分享</view>
					<view class="chbjh">立即分享海报获得更多拆红包机会</view>
				</view>
			</view>
			<!-- 未拆状态 -->
			<view class="hb-bg" v-else-if="redEnvelopeNum > 0 && !isSplit">
				<image src="../../static/image/page/hb-bofer.png" class="hb-bofer"></image>
				<image @click="closeLayer" src="../../static/image/page/hb-close.png" class="hb-close"></image>
				<view class="hb-bofer-content">
					<view class="gx-text">恭喜您获得邀请专享红包</view>
					<view class="btn" @click="openRedEnvelope">拆开它</view>
					<view class="chbjh">您有{{redEnvelopeNum}}次待拆开红包机会</view>
				</view>
			</view>
			<!-- 已拆状态 -->
			<view class="hb-bg" v-else>
				<image src="../../static/image/page/hb-after.png" class="hb-bofer"></image>
				<image @click="closeLayer" src="../../static/image/page/hb-close.png" class="hb-close"></image>
				<view class="hb-bofer-content">
					<view class="gx-text hb-after-text">恭喜您获得邀请专享红包</view>
					<view class="hb-text">
						<text class="amount">{{amount}}</text>
						<text class="yuan">元</text>
					</view>
					<view class="chbjh">已存入账户余额，可直接提现</view>
					<view class="btn" @click="shutDownOrTryAgain">{{redEnvelopeNum > 0?'再拆一次':'立即分享'}}</view>
					<view class="chbjh" v-if="redEnvelopeNum<=0">立即分享获取更多拆红包机会</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import permision from "@/js_sdk/wa-permission/permission.js"
	import {
		mapGetters,
		mapState
	} from 'vuex';
	import AES from "@/common/AES.js";
	import alerts from '../../components/alerts/index';
	export default {
		computed: {
			...mapGetters(["hasLogin"]),
			...mapState(["userInfo"]),
		},
		components:{alerts},
		data() {
			return {
				swiperImg: [
					'../../static/image/page/banner.png',
					'../../static/image/page/banner.png',
					'../../static/image/page/banner.png'
				],
				current: 0,
				swiperCurrent: 0,
				noticeMsg: "没有消息",
				proList: [{
					title: "帮人贷款",
					list: [{
						title: "不动产抵押贷款",
						tips: ""
					}, {
						title: "按揭赎楼"
					}]
				}, {}],
				exten: [],
				income: {},
				commissionInfo: {}, //佣金信息
				noReading: 0, //未读消息数
				isOpenActivity: false, //是否开启活动
				isShowRedEnvelope: true, //是否显示红包弹层
				noRedEnvelopesOrNotLoggedIn: true, //没用红包或者未登录
				redEnvelopeNum: 0, //红包次数
				isSplit: false, //是否拆包
				amount: 0, //红包金额
				 showMes:false,//显示消息推送弹层
				    mesNum:0,//新消息条数
			}
		},
		onLoad() {
			//获取推广中心内容
			this.getExtension();
			this.getBanner();
			this.getActivity();
			this.getRedEnvelope();
			console.log(this.userInfo)
		},
		onShow() {
			if (!this.hasLogin) return;
			this.getExtIncome();
			this.getCommissionPublicity();
			this.getNotReadNum();
			this.queryMessage();

		},
		methods: {
			// //关闭消息推送弹层
			  close(){
			    this.showMes=false;
			  },
			//消息推送查询
			  queryMessage(){
			    this.$api.queryMessage().then(res=>{
			        this.mesNum=+res.data.data;
			        this.showMes=res.data.data>0?true:false;
			    })
			  },
			//去banner详情
			goBannerDetail(e) {
				let url = e.currentTarget.dataset.item
				uni.navigateTo({
					url: '/pages/bannerDetail/bannerDetail?url=' + url,
				})
			},
			//获取banner
			getBanner() {
				this.$api.plainDictionary('banner_img').then(res => {
					this.swiperImg = res.data.data
				})
			},
			//查看图片
			viewImg() {
				this.$api.getActivityPoster().then(res => {
					let url = res.data.data;
					wx.previewImage({
						current: url, // 当前显示图片的http链接
						urls: [url], // 需要预览的图片http链接列表
						longPressActions: {
							itemList: ['保存图片'],
							success(data) {
								uni.saveImageToPhotosAlbum({
									filePath: url,
									success() {
										uni.showToast({
											icon: 'none',
											title: '保存相册成功',
											position: 'bottom'
										})
									}
								});
							}
						}
					})
				})
			},
			//关闭或者再来一次
			shutDownOrTryAgain() {
				if (this.redEnvelopeNum > 0) {
					//在拆一次
					this.openRedEnvelope();
				} else {
					//关闭弹层
					// this.closeLayer();
					//查看海报
					this.viewImg();
				}
			},
			//拆红包
			openRedEnvelope() {
				this.$api.getRedEnvelopesMoney().then(res => {

					this.amount = res.data.data;
					this.isSplit = true;
					this.redEnvelopeNum = --this.redEnvelopeNum;
				})
			},
			//获取红包次数
			getRedEnvelope() {
				this.$api.getRedEnvelopesTimes().then(res => {
					this.redEnvelopeNum = res.data.data,
						this.noRedEnvelopesOrNotLoggedIn = res.data.data > 0 ? false : true
				})
			},
			//关闭红包
			closeLayer() {
				this.isShowRedEnvelope = false
			},
			//是否开启活动
			getActivity() {
				this.$api.getActivity().then(res => {
					this.isOpenActivity = res.data.data.itemValue == '1' ? true : false;
				})
			},
			//获取未读数
			getNotReadNum() {
				this.$api.getNotReadNum().then(res => {

					this.noReading = res.data.data;

				})
			},
			//佣金信息
			getCommissionPublicity() {
				this.$api.getCommissionPublicity().then(res => {
					let data = res.data.data;
					// this.noticeMsg = `今日已发放佣金${data.num}笔，发放金额￥${data.giveMoney}元`;
					this.noticeMsg = `今日已发放佣金11笔，发放金额￥52364元`;
				})
			},
			//扫描二维码
			scanCode() {
				// plus.runtime.openURL('https://daitougou.com/quickApply.html?scene=686');
				let that = this;
				//#ifdef H5
				uni.showToast({
					title: "浏览器暂不支持扫描二维码功能",
					icon: 'none'
				})
				// uni.navigateTo({
				// 	url:"pages/team/applyTeam?superId=379&yid=379"
				// })
				//#endif
				//#ifdef APP-PLUS
				
				this.goScan();

				//#endif
			},
			//去扫码界面
			goScan() {
				uni.scanCode({
					success(res) {
						console.log('扫码', res);
						if (res.scanType == 'QR_CODE') {
							//二维码    --去到对应的页面
							if (~res.result.indexOf("/pages/register/register") || ~res.result.indexOf(
									"/pages/team/applyTeam")) {
								uni.navigateTo({
									url: res.result
								})
							} else if (~res.result.indexOf("https://daitougou.com")) {
								plus.runtime.openURL(res.result);
							} else {
								uni.showToast({
									title: "无效二维码",
									icon: 'none'
								})
							}
						} else {
							uni.showToast({
								title: "无效二维码",
								icon: 'none'
							})
						}
						// }

						// let data = that.getUrlParam('data', res.result)
						// //通过des解密
						// let DESdata = JSON.parse(AES.decryptDes(data));
						// console.log('参数', DESdata);
						// if (DESdata.dtg) {
						// 	uni.navigateTo({
						// 		url: "pages/team/applyTeam?id=" + DESdata.superId + "&yid=" + DESdata.yid
						// 	})
						// } else {
						// 	uni.showToast({
						// 		title: "无效二维码",
						// 		icon: 'none'
						// 	})
						// }
					},
					fail(err) {
						console.log(err)
					}
				})
			},
			getUrlParam(name, url) {
				// 取得url中?后面的字符
				var index = url.lastIndexOf("?");
				url = url.substring(index + 1, url.length);
				//把参数按&拆分成数组
				var param_arr = url.split("&");
				for (var i = 0; i < param_arr.length; i++) {
					var pair = param_arr[i].split("=");
					if (pair[0] == name) {
						return pair[1];
					}
				}
				return (false);
			},
			//个人业绩及排名
			getExtIncome() {
				this.$api.getMyPromotion().then(res => {
					this.income = res.data.data;
				}).catch(() => {})
			},
			//搜索
			goToSearch() {
				uni.navigateTo({
					url: "/pages/search/search",
					animationType: "slide-in-top"
				})
			},
			changeSwiper(e) {
				this.swiperCurrent = e.detail.current;
			},
			//获取推广中心
			getExtension() {
				this.$api.getExtension().then(res => {
					this.exten = res.data.data;
				})
			},
			//去往产品线界面
			goToProduct(id, name) {
				console.log(id, name)
				switch (id) {
					case 7:
						uni.navigateTo({
							url: "/pages/promote-posters-make-money/promote-posters-make-money",
						})
						break;
					case 6:
						uni.navigateTo({
							url: "/pages/userInvite/userInvite",
						})
						break;
					case 5:
						uni.navigateTo({
							url: "/pages/vipHouse/vipHouse"
						})
						break;
					case 4:
						uni.showToast({
							icon: 'none',
							title: '敬请期待'
						})
						break;
					default:
						uni.navigateTo({
							url: "/pages/product/product?id=" + id + "&name=" + name
						})
						break;
				}
			}
		}
	}
</script>
<style>
	page {
		background: #F8F8F8;
	}
</style>
<style scoped lang="scss">
	.top-line {
		height: 40rpx;
		background-color: #585cf7;
		position: fixed !important;
		top: 0;
		z-index: 9999;
		left: 0;
		right: 0;
	}

	.content {
		background: #F8F8F8;
		margin: 0 auto;
	}

	.left {
		display: flex;

	}

	.logo {
		width: 104rpx;
		height: 28rpx;
	}

	.input-view {
		/* #ifndef APP-PLUS-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		flex: 1;
		background-color: #FFFFFF;
		height: 30px;
		border-radius: 15px;
		padding: 0 15px;
		flex-wrap: nowrap;
		margin: 7px 0;
		line-height: 30px;
	}

	.input-uni-icon {
		line-height: 30px;
	}

	.nav-bar-input {
		height: 30px;
		line-height: 30px;
		padding: 0 5px;
		font-size: 14px;
		background-color: #FFFFFF;
		color: #999999;
		/* #ifdef APP-PLUS-NVUE */
		width: 446rpx;
		/* #endif */
	}

	.right_wrap {
		display: flex;
		width: 100%;
		justify-content: space-around;
		padding-right: 6px;
		align-items: center;
	}

	.icon_tip {
		position: relative;
		display: flex;

		.tips {
			font-size: 12px;
			background: red;
			color: #fff;
			position: absolute;
			right: -20rpx;
			top: 10rpx;
			line-height: 12px;
			border-radius: 50%;
			padding: 4rpx;
			transform: scale(.8);
			width: 30rpx;
			height: 30rpx;
			text-align: center;
			line-height: 30rpx;
		}
		.tips-max{
			line-height: 14rpx;
		}
	}

	.banner {
		position: relative;
		height: 260rpx;
		margin: 0 auto;
		background: $dtg-color-primary;
		padding: 0 30rpx;
		border-bottom-right-radius: 50% 10%;
		border-bottom-left-radius: 50% 10%;
		overflow: hidden;
		z-index: 997;
	}

	.swiper {
		width: 690rpx;
		height: 260rpx;
		border-radius: 16rpx;
		overflow: hidden;
		position: relative;
		margin: 0 auto;

		.swiper-item {
			width: 690rpx;
			height: 260rpx;
			border-radius: 16rpx;
		}
	}

	.dots {
		position: absolute;
		bottom: 20rpx;
		left: 50%;
		transform: translate(-50%, 0);
		-webkit-transform: translate(-50%, 0);
		z-index: 99;
		display: flex;
		flex-direction: row;
		justify-content: center;

		.dot {
			width: 8rpx;
			height: 8rpx;
			background: rgba(255, 255, 255, 1);
			margin-right: 10rpx;
			border-radius: 50%;
		}

		.active {
			border-radius: unset;
			width: 24rpx;
			height: 8rpx;
			background: rgba(255, 255, 255, 1);
		}
	}

	.nav {
		justify-content: space-between;
		background: $dtg-color-primary;
		padding: 96rpx 30rpx 60rpx;

		.nav_icon {
			width: 60rpx;
			height: 60rpx;
		}

		.item {
			display: flex;
			flex-direction: column;
			align-items: center;
			position: relative;
		}

		.title {
			font-size: 24rpx;
			margin-top: 8rpx;
			color: #FFFFFF;
		}
	}

	.uesr_wrap {
		background: #FFFFFF;
		border-radius: 20rpx;
		margin-top: 20rpx;
		overflow: hidden;

		.user {
			height: 190rpx;
			padding: 40rpx 20rpx;
			box-sizing: border-box;
			justify-content: space-between;
			align-items: center;
		}

		.left {
			width: 102rpx;
			height: 102rpx;
			position: relative;
		}

		.ts {
			width: 102rpx;
			height: 102rpx;
			border-radius: 50%;
			overflow: hidden;
		}

		.level {
			font-family: unidin;
			position: absolute;
			width: 38rpx;
			height: 38rpx;
			background: #F96363;
			border: 4rpx solid #FFFFFF;
			border-radius: 50%;
			color: #FFFFFF;
			text-align: center;
			line-height: 34rpx;
			font-style: oblique;
			bottom: 0;
			right: -4rpx;
			font-size: 22rpx;

			text {
				margin-left: -4rpx;
			}
		}

		.uni-icon {
			font-family: uniicons;
			font-size: 32rpx;
			font-weight: normal;
			font-style: normal;
			width: 28rpx;
			height: 28rpx;
			line-height: 28rpx;
			color: #999999;
		}

		.center {
			flex: 1;
			padding: 0 20rpx;

			.name {
				font-size: 24rpx;
				color: #333;
				font-weight: bold;
				line-height: 40rpx;
			}

			.text {
				font-size: 30rpx;
			}

			.pm {
				font-weight: bolder;
				font-size: 46rpx;
			}
		}

		.right {
			font-size: 24rpx;
			color: #999999;

			.red {
				color: #F96363;
			}
		}

		.bottom {
			width: 100%;
			height: 70rpx;
			background: rgba(255, 159, 21, .2);
			padding: 18rpx 20rpx;
			display: flex;
			align-items: center;

			.img {
				width: 148rpx;
				height: 28rpx;
			}

			.swiper-s {
				height: 100%;
				flex: 1;
			}
		}
	}

	.news {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 40rpx;

		.sub {
			width: 336rpx;
			height: 110rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			background-color: #FFFFFF;
			border-radius: 20rpx;
		}

		.img {
			width: 50rpx;
			height: 50rpx;
			margin-right: 20rpx;
		}

		.title {
			font-size: 30rpx;
			color: #333333;
			font-weight: bold;
		}
	}

	.promotion {
		margin-top: 24rpx;

		.title {
			text-align: center;
			font-size: 32rpx;
			font-weight: 800;
			color: #333333;
			line-height: 40rpx;
			margin-bottom: 20rpx;
		}

		.title text {
			position: relative;
		}

		.title text:before,
		.title text:after {
			content: "";
			width: 28rpx;
			height: 2rpx;
			background-color: $dtg-color-primary;
			position: absolute;
			top: 50%;
		}

		.title text:before {
			left: -40rpx;
		}

		.title text:after {
			right: -40rpx;
		}

		.extend {
			margin-bottom: 40rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			padding: 20rpx;

			.ex_title {
				text-align: left;
				font-size: 32rpx;
				font-weight: 800;
				color: #333333;
				line-height: 40rpx;
			}

			.ex_item {
				background: rgba(238, 238, 254, .4);
				border-radius: 20rpx;
				padding: 30rpx 20rpx 30rpx 40rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-top: 20rpx;
			}

			.name {
				font-size: 32rpx;
				font-weight: bold;
				color: #333333;
				display: flex;
				align-items: center;
			}

			.secondText {
				font-size: 20rpx;
				font-weight: 500;
				border: 1px solid #FC4073;
				color: #FC4073;
				border-radius: 6rpx;
				padding: 0 8rpx;
				margin-left: 20rpx;
				display: inline-block;
			}

			.thirdTest {
				font-size: 24rpx;
				;
				font-weight: 500;
				color: #ABABC4;
				margin-top: 20rpx;
			}

			.center {
				flex: 1;
			}

			.btn-tg {
				width: 120rpx;
				height: 46rpx;
				background: #585cf7;
				border-radius: 24rpx;
				line-height: 46rpx;
				font-size: 24rpx;
				color: #FFFFFF;
			}

			.btn:after {
				border: none;
			}

			.xyk-btn {
				background-color: #ddd;
				color: #999;
			}
		}
	}

	.hongbao-icon {
		width: 146rpx;
		height: 132rpx;
		position: fixed;
		z-index: 99;
		bottom: 200rpx;
		right: 60rpx;
		animation: free_download .5s linear alternate infinite;
	}

	@keyframes free_download {
		0% {
			transform: scale(0.8);
		}

		100% {
			transform: scale(1);
		}
	}

	//红包
	.layer {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		top: 0;
		background-color: rgba(0, 0, 0, .5);
		z-index: 999;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.hb-bg {
		width: 468rpx;
		height: 616rpx;
		position: relative;
	}

	.hb-bofer {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.hb-close {
		width: 54rpx;
		height: 54rpx;
		position: absolute;
		top: -90rpx;
		right: 0;
	}

	.hb-bofer-content {
		position: relative;
		z-index: 99;
		width: 100%;
		height: 100%;
	}

	.gx-text {
		text-align: center;
		font-size: 24rpx;
		color: #FFEBAC;
		margin-top: 330rpx;
	}

	.btn {
		width: 378rpx;
		height: 68rpx;
		background: linear-gradient(180deg, #FCE9A8 0%, #FECD75 100%);
		box-shadow: 0px 16rpx 16rpx 0px rgba(159, 20, 63, 0.3), 0px 2rpx 6rpx 0rpx #FEF5D3;
		border-radius: 34rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: #CB0908;
		text-align: center;
		line-height: 68rpx;
		margin: 70rpx auto 26rpx;
	}

	.chbjh {
		text-align: center;
		font-size: 20rpx;
		color: #FFEBAC;
	}

	.hb-after-text {
		margin-top: 140rpx;
	}

	.hb-text {
		text-align: center;
		margin-top: 70rpx;
	}

	.amount {
		font-size: 100rpx;
		font-weight: bold;
		color: #FFEBAC;
	}

	.yuan {
		font-size: 42rpx;
		color: #FFEBAC;
	}

	.hd-ckhb-btn {
		position: fixed;
		z-index: 9;
		top: 84rpx;
		right: 30rpx;
		width: 202rpx;
		height: 60rpx;
	}

	.top {
		// padding-top: 20px;
		//     background-color: rgb(88, 92, 247);
	}

	//分类
	.classification {
		padding: 0 30rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 54rpx;
		margin-top: 40rpx;
	}



	.class-item-img {
		width: 90rpx;
		height: 90rpx;
		// margin-right: 23rpx;
	}

	.class-menu {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		height: 260rpx;
	}

	.class-item {
		width: 335rpx;
		height: 120rpx;
		border-radius: 20rpx;
		background-color: #fff;
		display: flex;
		align-items: center;
		justify-content: space-between;
		/* margin-bottom: 20rpx; */
		padding: 0 10rpx 0 30rpx;
		box-sizing: border-box;
	}

	.jifen-icon {
		width: 56rpx;
		height: 56rpx;
	}

	.jifen-icon-box {
		text-align: right;
	}

	.jfsc {
		width: 335rpx;
		height: 260rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		// padding: 26rpx 40rpx 0;
		box-sizing: border-box;
	}
	.jifen-img{
	  width: 100%;
	  height: 100%;
	}

	.jfcs-title {
		font-size: 30rpx;
		font-weight: bold;
		color: #333333;
		margin-bottom: 14rpx;
	}

	.jfsc-tips {
		font-size: 22rpx;
		color: #999999;
		margin-bottom: 20rpx;
	}

	.qdh {
		font-size: 26rpx;
		font-weight: bold;
		color: #585CF7;
	}

	.jifen-icon-box {
		text-align: right;
	}

	.jifen-icon {
		width: 56rpx;
		height: 56rpx;
	}

	.class-item-title {
		font-size: 30rpx;
		font-weight: bold;
		color: #333333;
	}
	.class-item-title-text{
	  font-size: 24rpx;
	color: #999999;
	line-height: 48rpx;
	}
	
	//订单红点
	.angle {
	  width: 34rpx;
	  height: 34rpx;
	  border-radius: 50%;
	  background-color: red;
	  position: absolute;
	  top: -12rpx;
	  right: -12rpx;
	  font-size: 20rpx;
	  color: #fff;
	  text-align: center;
	  line-height: 34rpx;
	 
	}
	.order-angle{
	  position: absolute;
	  left: 48rpx;
	}
	.angle-center{
	  line-height: 21rpx;
	  font-size: 31rpx;
	}

	
</style>
